package com.kaijie.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaijie.dao.RoomRepairDao;
import com.kaijie.entity.RoomRepairEntity;
import com.kaijie.service.RoomRepairService;
import com.kaijie.utils.PageUtils;
import com.kaijie.utils.Query;


@Service("roomRepairService")
public class RoomRepairServiceImpl extends ServiceImpl<RoomRepairDao, RoomRepairEntity> implements RoomRepairService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RoomRepairEntity> page = this.page(
                new Query<RoomRepairEntity>().getPage(params),
                new QueryWrapper<RoomRepairEntity>()
        );

        return new PageUtils(page);
    }

}
